package zgh.structure.agent.jdkproxy;

import zgh.structure.agent.staticproxy.TV;

/**
 * @author zhanggonghui
 * @create 2022-04-17 14:31
 * @describe 工厂也得把维修业务搞起来
 **/
public class TVFactory implements TVCompany {
    @Override
    public TV produceTV() {
        System.out.println("电视厂生产电视。。。");
        return new TV("小米电视机", "合肥");
    }

    @Override
    public TV repair(TV tv) {
        System.out.println("电视厂维修电视机。。。");
        return new TV("小米电视机", "合肥");
    }
}
